$(document).ready(function(){
    bindLinks();

}); 


function bindLinks(){
    $("#add_designee").bind('click',function(){
        
        $.ajax({ type: "PUT", url: $("#AjaxController").val() + "?api=AddDesignee", async: false, data: viewGroupObjects(),
            success: function(){
                return false;
            },
            complete: function(){
                return false;
            },
            error: function(){
                return false;
            }
        });
        return false;
    });
}


var viewGroupObjects = function(){
    return {
        GroupDN: $("#GroupDN").val(),
        ViewUser: $("#ViewUser").val(),
        ViewGroup: $("#ViewGroup").val(),
        IntranetUser: $("#IntranetUser").val()
        
    };
};

